fromInteger

open fun fromInteger(degrees: Int): OrientationType

Retrieves an OrientationType based on its integer degree value.

This method maps specific integer degree values to their corresponding OrientationType constants:

Return

The corresponding OrientationType, or null if the input degree value does not match any predefined orientation. Consider throwing an IllegalArgumentException for unmapped values if a null return is not desired.

Parameters

degrees

The integer degree value of the desired orientation.